package com.hotacorp.opencloud.gateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.hotacorp.opencloud.common.commdata.Result;

/**
 * 通过Feign调用匹配租户，域名->租户ID
 * @author lwg
 *
 */
@FeignClient(value="${sysuser.servicename}", fallback=TenantFeignClientHystric.class)
public interface TenantFeignClient {
	@GetMapping(value = "/anon/tenantid", params = "domain")
	Result<Long> getTokenInfo(@RequestParam("domain") String domain);

}
